<template>
  <div>
    <!--

       value / v-model	绑定值
      active-color	switch 打开时的背景色
      inactive-color	switch 关闭时的背景色
      active-value	switch 打开时的值	boolean / string / number	—	true
      inactive-value	switch 关闭时的值	boolean / string / number	—	false
      active-text	switch 打开时的文字描述	string
      inactive-text	switch 关闭时的文字描述
     -->
    <el-switch
      v-model="value"
      active-color="#13ce66"
      inactive-color="#ff4949"
      active-value="1"
      inactive-value="0"
      active-text="打开"
      inactive-text="关闭"
    />
  </div>
</template>

<script>
export default {

  data() {
    return {
      value: '0'
    }
  }
}
</script>

<style>

</style>
